package com.zhoukx.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Client
 * @Description:
 * @Author zhoukx
 * @Date 2020/8/17
 **/
public class Client {

    public static void main(String[] args) {
       // 创建学院
        List<Collage> arrayList = new ArrayList<>();
      //
        ComputerCollage computerCollage = new ComputerCollage();
        InfoCollege infoCollege = new InfoCollege();

        arrayList.add(computerCollage);
        arrayList.add(infoCollege);

        OutPutImpl outPut = new OutPutImpl(arrayList);
        outPut.printCollage();
    }
}
